<admintpl file="header" />
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>跑单信息</a></li>
    </ul>
    <form class="well form-search" method="post" action="{:U('Runmenanalysis/order_detail')}">
        订单号：<input type="text" name="formget[order_number]" style="width: 100px;" value="{$formget.order_number}">&nbsp;
        时间：<input type="text" name="formget[order_time]" class="js-date" value="{$formget.order_time|default=''}" style="width:100px;" autocomplete="off">&nbsp;
        类型: 
        <select class="select_2" name="formget[order_type]"  style="width: 80px;" >
               <option value='-1'{$formget[order_type]==-1?selected:''}>全部</option>
               <option value='1'{$formget[order_type]==1?selected:''}>取送东西</option>
               <option value='2'{$formget[order_type]==2?selected:''}>代买</option>
               <option value='2'{$formget[order_type]==2?selected:''}>排队</option>
             </select> &nbsp;
        预约:
             <select class="select_2" name="formget[is_reservation]"  style="width: 80px;" >
               <option value='-1'{$formget[is_reservation]==-1?selected:''}>全部</option>
               <option value='0'{$formget[is_reservation]==0?selected:''}>否</option>
               <option value='1'{$formget[is_reservation]==1?selected:''}>是 </option>
             </select> &nbsp;
        用户电话:<input type="text" name="formget[user_mobile]" style="width: 100px;" value="{$formget.user_mobile}">&nbsp;
        跑客姓名:<input type="text" name="formget[dispatch_name]" style="width: 100px;" value="{$formget.dispatch_name}"><br>
        跑客电话:<input type="text" name="formget[dispatch_mobile]" style="width: 100px;" value="{$formget.dispatch_mobile}">
        
        <input type="submit" class="btn btn-primary" value="搜索" />
    </form>
    总数：{$total_count}人
    <form method="post" class="js-ajax-form">
        <!--        <div class="table-actions">
                    <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Bdrunpeople/sign',array('sign'=>1))}" data-subcheck="true">签约</button>
                    <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Bdrunpeople/cancelsign',array('unsign'=>1))}" data-subcheck="true">取消签约</button>
                    <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Bdrunpeople/incubator',array('incubator'=>1))}" data-subcheck="true">领取保温箱</button>
                    <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Bdrunpeople/freezee',array('freezee'=>1))}" data-subcheck="true" data-msg="您确定冻结账户吗？">冻结</button>
                    <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Bdrunpeople/cancelfreezee',array('cancelfreezee'=>1))}" data-subcheck="true" data-msg="您确定启用账户吗？">启用</button>
                    <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Bdrunpeople/cancelaudit',array('audit'=>1))}" data-subcheck="true">取消审核</button>
                </div>-->
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th align="center">序号</th>
                <th>订单号</th>
                <th>时间</th>
                <th>类型</th>
                <th>状态</th>
                <th>支付方式</th>
                <th>订单金额</th>
                <th>实付金额</th>
                <th>预约</th>
                <th>指派</th>
                <th>验证码</th>
                <th>用户电话</th>
                <th>跑客姓名</th>
                <th>跑客电话</th>
            </tr>
            </thead>
            <tbody>
            <php>
                $order_type = array("-1"=>'全部',"1"=>'取送东西',"2"=>'代买',"3"=>'排队');
                $status = array("-1"=>'全部',"0"=>'未处理',"1"=>'待分配',"2"=>'已分配',"3"=>'已到达',"4"=>'已拍照',"5"=>'已取件',"6"=>'已送达',"7"=>'已完成',"9"=>'已取消');
                $pay_method = array("-1"=>'全部',"1"=>'支付宝',"2"=>'微信',"3"=>'钱包');
                $is_reservation = array("-1"=>'全部',"0"=>'否',"1"=>'是');
                $is_appoint = array("-1"=>'全部',"0"=>'否',"1"=>'是');
            </php>
            <foreach name="lists" item="vo" key="k">
                <tr>
                    <td align="center">{$k+1}</td>
                    <td>{$vo.order_number}</td>
                    <td>{$vo.order_time}</td>
                    <td>{$order_type[$vo[order_type]]}</td>
                    <td>{$status[$vo[status]]}</td>
                    <td>{$pay_method[$vo[pay_method]]}</td>
                    <td>{$vo.order_amount}</td>
                    <td>{$vo.real_amount}</td>
                    <td>{$is_reservation[$vo[is_reservation]]}</td>
                    <td>{$is_appoint[$vo[is_appoint]]}</td>
                    <td>{$vo.get_vali_code}</td>
                    <td>{$vo.user_mobile}</td>
                    <td>{$vo.dispatch_name}</td>
                    <td>{$vo.dispatch_mobile}</td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <if condition="empty($lists)">
            <div style="padding: 30px;text-align: center;color: #999999">
                <i class="fa fa-database" style="font-size: 38px"></i><br />
                暂无数据
            </div>
        </if>
        <div class="pagination">{$page}</div>
    </form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>